package com.zqh.authority.service;

import com.zqh.common.entity.Page;
import com.zqh.common.entity.R;
import com.zqh.common.entity.SysUserEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * 系统用户
 *
 * @author wangzheng
 * @email wangzheng19851019@163.com
 * @url www.sungohealth.com
 * @date 2017年8月11日 上午11:45:42
 */
public interface SysUserService {

	Page<SysUserEntity> listUser(Map<String, Object> params);
	
	R saveUser(SysUserEntity user);
	
	R getUserById(Long userId);
	
	R updateUser(SysUserEntity user);
	
	R batchRemove(Long[] id);
	
	R listUserPerms(Long userId);
	
	R updatePswdByUser(SysUserEntity user);
	
	R updateUserEnable(Long[] id);
	
	R updateUserDisable(Long[] id);
	
	R updatePswd(SysUserEntity user);

	R uploadHead(MultipartFile imgFile);
	
}
